<div class="nav">
    <a class="sel" href="{:U('index')}">配送方式列表</a>
    <a href="{:U('add')}">添加配送方式</a>
</div>
<div class="list">
    <table class="table_list">
        <thead>
            <tr>
                <td>配送方式名称</td>
                <td width="80px">类别</td>
                <td width="60px">物流保价</td>
                <td width="60px">货到付款</td>
                <td width="100px">地区运费</td>
                <td width="60px">顺序编号</td>
                <td width="60px">启用</td>
                <td>操作</td>
            </tr>
        </thead>
        <tbody> 
        <foreach name="list" item="list">
            <tr>
            <td>{$list.delivery_name}</td>
            <td><switch name="list.type">
                    <case value="1">快递送货</case>
                    <case value="3">自提点</case>
                </switch>
            </td>
            <td><if condition="$list.type neq 3">{$list['is_save_price']?'是':'否'}</if></td>
            <td><if condition="$list.type neq 3">{$list['pay_last']?'支持':'不支持'}</if></td>
            <td><if condition="$list.type neq 3">{$list['price_type']==2?'指定地区运费':'统一设置'}</if></td>
            <td class="edit_input" attr_t="order_id" attr_id="{$list.delivery_id}">{$list.order_id}</td>
            <td class="edit_toggle" attr_t="is_enable" attr_id="{$list.delivery_id}">{$list.is_enable}</td>
            <td><if condition="$list.price_type eq 2">
                    <a class="btn_a3" href="{:U('area',Array('delivery_id'=>$list['delivery_id']))}">地区运费配置</a>
                </if>
                <if condition="$list.type eq 3">
                    <a class="btn_a3" href="{:U('takeself')}">自提点管理</a>
                </if>
                <a class="btn_a" href="{:U('edit',Array('delivery_id'=>$list['delivery_id']))}">修改</a>&nbsp;
                <a class="btn_a2" href="{:U('del',Array('delivery_id'=>$list['delivery_id']))}" onclick="return confirm('确定删除吗？')">删除</a></td>
            </tr>
        </foreach>
        </tbody>
        <tfoot>
            <tr><td colspan="8"><div class="page">{$page}</div></td></tr>
        </tfoot>
    </table>
</div>

